package com.aididi.jichu;

/**
 * @Auther: zx.xu
 * @Description:
 */
public class OpotionalDemo {

    public static void main(String[] args) {

        for (int i = 1; i < 5; i++) {
            Student stu = new Student();
            stu.setAge(i);
            stu.setName("用户"+i);

        }
    }

}



class Student{

    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
